package team.bailan.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import team.bailan.entity.domain.RoomInf;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PrepareInfVO {
    String msgType;
    Boolean[] positionFlag;
    Boolean[] prepareFlag;
    String[] usernameList;
    Integer[] userBeans;
    boolean startFlag;
    int playerPosition; // 操作员

    public void setData(RoomInf roomInf) {
        this.setPositionFlag(roomInf.getPositionFlag());
        this.setPrepareFlag(roomInf.getPrepareFlag());
        this.setUsernameList(roomInf.getUsernameList());
        this.setUserBeans(roomInf.getUserBeans());
    }
}
